<!--
 * @Author: your name
 * @Date: 2021-04-27 10:24:59
 * @LastEditTime: 2022-02-13 17:04:07
 * @LastEditors: ke.xue
 * @Description: In User Settings Edit
 * @FilePath: \product-display\src\page\show\index.vue
-->
<template>
  <div class="indexContent pageContent">
    <el-divider content-position="left">公司简介</el-divider>
    <div class="companyDesc">
      <p class="descContent"><span class="companyName">尤优家具 </span>是集设计研发、生产、销售为一体的家具企业，公司产品种类繁多，有办公家具、酒店家具、全屋定制、玻璃隔断、养老、银行、医院、学校、实验、竹制、多功能、车间定制家具等多个系列，包含车间工作台、工具柜、不锈钢制品、防静电家具等系列；经过公司全体同仁的不邂努力，在长三角地区有数百家内外资企业和行政事业单位与苏州公司建立了良好的供求合作关系；我们采用国际流行的敞开式办公理念，致力为各类客户在办公环境方面塑造良好的企业办公空间形象。。。<span class="link linkBox" @click="toAbout">【详细介绍】</span></p>
      <div class="logoBox linkBox" @click="toAbout"><img :src="bigLogo" alt=""></div>
    </div>
    <div class="homeRecommend"><img :src="homeRecommend" alt=""></div>
    <div class="commodityListBox">
      <div class="commodityList">
        <div class="itemBox linkBox" v-for="(item, index) in indexList" :key="index" @click="toDetail(item)">
          <div class="commodityImgBox"><img :src="imgBaseUrl + item.imageUrl" alt=""></div>
          <p class="commodityName">{{item.imageName}}</p>
        </div>
      </div>
    </div>
    <div class="homeRecommend"><img :src="reasonIcon" alt=""></div>
    <el-divider />
    <div class="reasonBox">
      <div class="reasonTitle">
        <h1>核心竞争力</h1>
        <p>CORE COMPETITIVENESS</p>
      </div>
      <div class="reasonItem">
        <div class="itemContent" style="margin-right: 20px">
          <div class="itemTitle">
            <p>1</p>
            <h1>多年防静电家具及办公家具生成经验</h1>
          </div>
          <div class="itemDesc">
            <p>专注质量，严谨工艺，经验丰富实力雄厚</p>
            <p>集生产、销售、研发为一体的专业化公司</p>
          </div>
          <el-divider />
          <div class="itemTitle">
            <p>2</p>
            <h1>拥有优良的设备、强大的生产进程保障实力</h1>
          </div>
          <div class="itemDesc">
            <p>公司拥有国内为优良的生产设备、完善的管理制度、专业的技术人员</p>
          </div>
        </div>
        <div class="itemIcon"><img :src="reason4" alt=""></div>
      </div>
      <div class="reasonItem">
        <div class="itemIcon"><img :src="reason2" alt=""></div>
        <div class="itemContent" style="margin-left: 20px">
          <div class="itemTitle">
            <p>3</p>
            <h1>工产品质量好，出货速度快</h1>
          </div>
          <div class="itemDesc">
            <p>公司在广东、苏州等地设立生产基地，投资六千多万元，引进德国、意大利先进生产设备</p>
            <p>拥有四万平方米的生产厂房，规模宏大、实力雄厚</p>
          </div>
          <el-divider />
          <div class="itemTitle">
            <p>4</p>
            <h1>致力为各类客户在办公环境方面塑造成功的企业形象</h1>
          </div>
          <div class="itemDesc">
            <p>我们采用国际流行的敞开式办公理念</p>
            <p>所有办公家具用料考究，采用意大利进口实木及板材配件</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import { bigLogo, reason2, reason4, homeRecommend, reasonIcon } from '@/assets/js/img.js'

export default {
  name: 'Index',
  data () {
    return {
      banner: [],
      commodityList: [],
      imgBaseUrl: process.env.VUE_APP_IMAGE_URL,
      bigLogo,
      reason2,
      reason4,
      homeRecommend,
      reasonIcon
    }
  },
  created () { },
  computed: {
    ...mapGetters([
      'indexList'
    ])
  },
  methods: {
    toAbout () {
      this.$router.push({
        path: '/show/about'
      })
    },
    toList () {
      this.$router.push({
        path: '/show/list'
      })
    },
    toDetail (obj) {
      this.$router.push({
        path: '/show/detail',
        query: obj
      })
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
.indexContent {
  .bannerItemBox {
    height: 200px;
    img {
      width: 100%;
      height: 200px;
    }
  }
  .companyDesc {
    margin: 30px 0;
    height: 166px;
    display: flex;
    justify-content: space-between  ;
    background: #eee;
    .descContent {
      padding: 10px;
      width: 830px;
      font-size: 16px;
      line-height: 24px;
      text-indent: 32px;
      .companyName {
        color: red;
      }
      .link {
        color: royalblue;
      }
    }
    .logoBox {
      padding-top: 10px;
      width: 394px;
    }
  }
  .commodityListBox {
    .listTitle {
      margin-bottom: 20px;
      display: flex;
      justify-content: space-between;
      height: 30px;
      .productsImg {
        width: 240px;
      }
      .productListMoreImg {
        width: 70px;
      }
    }
  }
  .reasonBox {
    margin-top: 20px;
    .reasonTitle {
      text-align: center;
      h1 {
        font-size: 30px;
        line-height: 50px;
        color: #5ca0d2;
      }
      p {
        font-size: 14px;
        line-height: 24px;
        color: #9d9eaa;
      }
    }
    .reasonItem {
      margin-top: 20px;
      display: flex;
      .itemContent {
        flex: 1;
        .itemTitle {
          display: flex;
          p {
            width: 30px;
            height: 30px;
            font-size: 20px;
            line-height: 30px;
            text-align: center;
            font-weight: 600;
            color: #fff;
            background-color: #ff7300;
            border-radius: 50%;
          }
          h1 {
            padding-left: 20px;
            font-size: 20px;
            line-height: 30px;
            color: #000;
          }
        }
        .itemDesc {
          padding-left: 50px;
          padding-top: 10px;
          font-size: 14px;
          color: #999;
          line-height: 24px;
        }
      }
      .itemIcon {
        width: 450px;
        font-size: 0;
      }
    }
  }
  .homeRecommend {
    font-size: 0;
  }
}

</style>
